url: call ada::can_parse directly#47919
Conversation
|
Review requested:
|
lemire
left a comment
There was a problem hiding this comment.
This opens up future optimization opportunities.
|
@nodejs/build I couldn't understand the root cause of the error in |
jasnell
left a comment
There was a problem hiding this comment.
LGTM but looks like there's an asan issue in ada::url that needs looking at.
Because the ASan output is massive and the relevant part can be hard to find, here's a link to the relevant part: https://github.com/nodejs/node/actions/runs/4929741771/jobs/8809762438?pr=47919#step:6:5394 Be patient while it loads. The relevant line starts with |
Ugh, that link didn't work. You need to scroll back up to line 5393. |
@lemire do you have any idea about the root cause of this error? |
|
@Trott I suspect it is not in ada that we have a memory error. See my comment above. |
|
Landed in 8b6947f |
PR-URL: nodejs#47919 Reviewed-By: Matthew Aitken <maitken033380023@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
PR-URL: #47919 Reviewed-By: Matthew Aitken <maitken033380023@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
We're planning on improving the performance of
ada::can_parseand added this function in2.3.1release. This would make things a lot easier and more readable for Node.js.cc @KhafraDev @nodejs/url